<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.sf.net/frails" prefix="fr"%>

<f:view>
	<h:form>
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
			<head>
				<meta http-equiv="pragma" content="no-cache" />
				<meta http-equiv="cache-control" content="no-cache" />
				<meta http-equiv="expires" content="0" />
				<link href="../css/iframe.css" rel="stylesheet" type="text/css" />
			</head>
			<body>
				<div id="container">
					<div class="titles">
						<h:outputText value="创建许可证权限"></h:outputText>
					</div>
					<h:messages />
					<%-- contents--%>
					<table style="">
						<tr>
							<td>
								<h:outputLabel value="次数限制" />
							</td>
							<td>
								<h:inputText value="#{$.permission.count}" label="count" />
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel value="有计时器的次数限制,使用时间小于这个正整数时，次数不减少" />
							</td>
							<td>
								<h:inputText value="#{$.permission.timedCount}" label="timedCount" />
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel value="开始时间" />
							</td>
							<td>
								<h:inputText value="#{$.permission.timeStart}" label="timeStart" />
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel value="结束时间" />
							</td>
							<td>
								<h:inputText value="#{$.permission.timeEnd}" label="timeEnd" />
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel value="执行周期" />
							</td>
							<td>
								<h:inputText value="#{$.permission.freeInterval}" label="freeInterval" />
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel value="可访问节目的最长时间" />
							</td>
							<td>
								<h:inputText value="#{$.permission.accumulated}" label="accumulated" />
							</td>
						</tr>
						<tr>
							<td></td>
							<td>
								<h:commandButton value="添加" actionListener="#{$.create}" action="r:/license/permission" />
							</td>
						</tr>
					</table>
				</div>
			</body>
		</html>
	</h:form>
</f:view>

